<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>엘리먼트 객체</title>
<script type="text/javascript">
	function findParent(element) {
		var parent = element.parentNode;
		parent.style.border = "1px solid red";
	}
</script>
</head>
<body>
	<div style="border: 1px solid black; height: 100px;">
		<p>
		<button onclick="findParent(this);"> 직속 상위 엘리먼트 찾기 </button>
		</p>
	</div>
</body>
</html>
